package com.bardsoftware.foronuvolo.server;

import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;

import javax.jdo.annotations.Persistent;

import com.google.appengine.repackaged.com.google.common.collect.Lists;
import com.google.common.collect.HashMultimap;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.FeedException;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;


public class RssListener {
	
	@Persistent
	private static HashMultimap<String, String> feeds;
	@Persistent
	private static final RssListener INSTANCE = new RssListener();
	
	private RssListener() {
	}
	public static RssListener getInstance() {
		return INSTANCE;
	}
	public  void addFeed(String userId, String feedURL) {		
		feeds.put(feedURL, userId);		
	}
	public Set<String> getFeeds() {
		return feeds.keySet();
	}	
}
